package cn.hncum.feign.clients;

import cn.hnucm.bean.TbGoodsBasis;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Author:liweihua
 * @Description:  二手物品操作
 * @Date: 22:47$ 2021/12/28/028$
 * @Modified:
 */
@FeignClient("searchesservice")
public interface EsClient {
    @GetMapping("/serchesservice/tbGoodsBasis/getGoodsVoById/{goodsId}")
    public TbGoodsBasis getTbGoodsBasisByGoodsId(@PathVariable("goodsId") int id);

    @GetMapping("/serchesservice/tbGoodsBasis/updateGoodsNumById/{goodsId}/{goodsNum}")
    public boolean updateGoodsNumById(@PathVariable("goodsId") int goodsId,@PathVariable("goodsNum") int goodsNum);

}
